package model;

public class Training{

	private String description;
	private int caloriesSpent;
	private int[] caloriesIntegrated;
	
	public Training(String d, int s, int[] i) {
		description = d;
		caloriesSpent = s;
		caloriesIntegrated = i;
	}
	
	public int getCaloriesSpent() {
			return caloriesSpent;
	}
	
	public String getDescription() {
		return description;
	}
	
	public int getCaloriesIntegrated() {
		int sum = 0;
		for (int i = 0; i < caloriesIntegrated.length; i++)
			sum += caloriesIntegrated[i];
		return sum;
	}
	
	public int getCalories() {
		return getCaloriesIntegrated() - getCaloriesSpent();
	}
}
